package com.zx.web.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity：产品详情 [engine:InnoDB,type:BASE TABLE,catalog:def,schema:file,name:product,auto:].
 * @author Ken
 * @since 2017-04-23 22:41
 * @version v1.0.0
 */
@Entity
@Table(name = "product")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 物料号*/
    @Id
    @Column(name = "no")
    private String no;// 物料号,key:PRI,null:NO,type:varchar,charset:utf8,default: ,maxLen:100

    /** 名字*/
    @Column(name = "specname")
    private String specname;// 名字,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:250

    /** 路径,字典代指*/
    @Column(name = "specpath")
    private String specpath;// 路径,字典代指,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:250

    /** 物料描述*/
    @Column(name = "description")
    private String description;// 物料描述,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:100

    /** 产品类型*/
    @Column(name = "ptype")
    private String ptype;// 产品类型,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:100

    /** 规格书链接全路径，一个*/
    @Column(name = "speclinks")
    private String speclinks;// 规格书链接全路径，一个,key:,null:NO,type:longtext,charset:utf8,default: ,maxLen:4,294,967,295

    /** 操作手册编号 用,分割*/
    @Column(name = "manualno")
    private String manualno;// 操作手册编号 用,分割,key:,null:NO,type:longtext,charset:utf8,default: ,maxLen:4,294,967,295

    /** 图纸编号 用,分割*/
    @Column(name = "drawnos")
    private String drawnos;// 图纸编号 用,分割,key:,null:NO,type:longtext,charset:utf8,default: ,maxLen:4,294,967,295

    /** ecr编号 用,分割*/
    @Column(name = "ecrnos")
    private String ecrnos;// ecr编号 用,分割,key:,null:YES,type:longtext,charset:utf8,default: ,maxLen:4,294,967,295

    /** 创建者*/
    @Column(name = "creator")
    private String creator;// 创建者,key:,null:NO,type:varchar,charset:utf8,default: ,maxLen:20

    /** 修改者*/
    @Column(name = "editor")
    private String editor;// 修改者,key:,null:YES,type:varchar,charset:utf8,default: ,maxLen:20

    /** 创建时间*/
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "time_create")
    private Date timeCreate;// 创建时间,key:,null:NO,type:datetime,charset:,default: ,maxLen:

    /** 更新时间*/
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "time_update")
    private Date timeUpdate;// 更新时间,key:,null:YES,type:datetime,charset:,default: ,maxLen:

    /** 状态,1OK,-1文件不存在*/
    @Column(name = "status")
    private Integer status;// 状态,1OK,-1文件不存在,key:,null:NO,type:int,charset:,default: 1,maxLen:

    // @Transient
    // private Object transientFiled;

    public Product() {}

    /**
     * 获取物料号.
     */
    public String getNo() {
        return this.no;
    }

    /**
     * 设置物料号.
     */
    public void setNo(String no) {
        this.no = no;
    }

    /**
     * 获取名字.
     */
    public String getSpecname() {
        return this.specname;
    }

    /**
     * 设置名字.
     */
    public void setSpecname(String specname) {
        this.specname = specname;
    }

    /**
     * 获取路径,字典代指.
     */
    public String getSpecpath() {
        return this.specpath;
    }

    /**
     * 设置路径,字典代指.
     */
    public void setSpecpath(String specpath) {
        this.specpath = specpath;
    }

    /**
     * 获取物料描述.
     */
    public String getDescription() {
        return this.description;
    }

    /**
     * 设置物料描述.
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 获取产品类型.
     */
    public String getPtype() {
        return this.ptype;
    }

    /**
     * 设置产品类型.
     */
    public void setPtype(String ptype) {
        this.ptype = ptype;
    }

    /**
     * 获取规格书链接全路径，一个.
     */
    public String getSpeclinks() {
        return this.speclinks;
    }

    /**
     * 设置规格书链接全路径，一个.
     */
    public void setSpeclinks(String speclinks) {
        this.speclinks = speclinks;
    }

    /**
     * 获取操作手册编号 用,分割.
     */
    public String getManualno() {
        return this.manualno;
    }

    /**
     * 设置操作手册编号 用,分割.
     */
    public void setManualno(String manualno) {
        this.manualno = manualno;
    }

    /**
     * 获取图纸编号 用,分割.
     */
    public String getDrawnos() {
        return this.drawnos;
    }

    /**
     * 设置图纸编号 用,分割.
     */
    public void setDrawnos(String drawnos) {
        this.drawnos = drawnos;
    }

    /**
     * 获取ecr编号 用,分割.
     */
    public String getEcrnos() {
        return this.ecrnos;
    }

    /**
     * 设置ecr编号 用,分割.
     */
    public void setEcrnos(String ecrnos) {
        this.ecrnos = ecrnos;
    }

    /**
     * 获取创建者.
     */
    public String getCreator() {
        return this.creator;
    }

    /**
     * 设置创建者.
     */
    public void setCreator(String creator) {
        this.creator = creator;
    }

    /**
     * 获取修改者.
     */
    public String getEditor() {
        return this.editor;
    }

    /**
     * 设置修改者.
     */
    public void setEditor(String editor) {
        this.editor = editor;
    }

    /**
     * 获取创建时间.
     */
    public Date getTimeCreate() {
        return this.timeCreate;
    }

    /**
     * 设置创建时间.
     */
    public void setTimeCreate(Date timeCreate) {
        this.timeCreate = timeCreate;
    }

    /**
     * 获取更新时间.
     */
    public Date getTimeUpdate() {
        return this.timeUpdate;
    }

    /**
     * 设置更新时间.
     */
    public void setTimeUpdate(Date timeUpdate) {
        this.timeUpdate = timeUpdate;
    }

    /**
     * 获取状态,1OK,-1文件不存在.
     */
    public Integer getStatus() {
        return this.status;
    }

    /**
     * 设置状态,1OK,-1文件不存在.
     */
    public void setStatus(Integer status) {
        this.status = status;
    }
}
